<div id="header-wrapper">
	<div id="header">
		<div id="header-logo">
			<a href="http://www.koorz.com/">
				<img src="${CONTEXT_PATH}/img/logo.png" alt="酷哇,时尚达人穿搭社区" title="酷哇,时尚达人穿搭社区">
			</a>
		</div>
		<ul class="header-navi lf">
			<#list menus as menu>
			<li>
				<#if menu.child??>
				<a href="${menu.url}" class="menu has-child f18">${menu.name}</a>
				<div class="drop-down ${menu.code}">
					<span class="corner"></span>
    				<div class="label">
    				<#list menu.child as child>
    					<#if child_index%4 == 0 && (menu.child.size()-child_index>4)>
    					<p style="border-bottom:0">
    					<#elseif child_index%4 == 0 && (menu.child.size()-child_index<=4)>
    					<p>
    					</#if>
    					<a href="${child.url}">${child.name}</a>
    					<#if ((child_index+1)%4) == 0>
    					</p>
    					<#elseif !child_has_next>
    					</p>
    					</#if>
	    			</#list>
    				</div> 
				</div>
				<#else>
				<a href="${menu.url}" class="menu f18">${menu.name}</a>
				</#if>
			</li>
			</#list>
        </ul>
		<ul class="header-user-info ri">
			<#if onlineUser??>
			<li>
				<a class="f18 create" href="/style/create/0" target="_blank" title="玩搭配" alt="玩搭配"></a>
			</li>
			<li>
           		<a href="/user/${onlineUser.id}">
           			<img src="${onlineUser.avatar}" width="20px" style="margin-right:10px" align="absmiddle">
           				${onlineUser.nickname}
           			<img src="${CONTEXT_PATH}/img/head-b.gif" align="absmiddle">
           		</a>
           		<div class="drop-down">
           			<span class="corner"></span>
           			<a href="/user/${onlineUser.id}" class="home">主页</a>
           			<a href="/user/assets" class="my-assets">资产</a>
           			<a href="/user/logout" class="logout">退出</a>
           		</div>
           	</li>
			<#else>
			<li>
				<a class="f18 login" href="javascript:void(0);">登录</a>
			</li>
			<li>
				<a class="f18 login" href="javascript:void(0);" onclick="$.koorz.login.login();return false;">玩搭配</a>
			</li>
			</#if>
           </ul>
	</div>
</div>